/*
 * Project Beknyou
 * Copyright (c) 2010-2011 Saint Paul College, All Rights Reserved
 * Redistributions in source code form must reproduce the above
 * Copyright and this condition.
 * The contents of this file are subject to the GNU General Public
 * License, Version 2 (the "License"); you may not use this file
 * except in compliance with the License. A copy of the License is
 * available at http://www.opensource.org/licenses/gpl-license.php.
 */
package com.benkyou.common.messages;

import com.jme3.network.AbstractMessage;
import com.jme3.network.serializing.Serializable;

/**
 *
 * @author Austin Allman
 */
@Serializable
public class WebcamMessage extends AbstractMessage {

    private byte[] imageData;
    private int numberOfParts;
    private int imageNumber;
    private int imageID;

    public WebcamMessage() {
    }

    public WebcamMessage(byte[] b, int numberOfParts, int imageNumber, int imageID) {
        imageData = b;
        this.numberOfParts = numberOfParts;
        this.imageNumber = imageNumber;
        this.imageID = imageID;
    }

    public byte[] getImageData() {
        return imageData;
    }

    public int getNumberOfParts() {
        return numberOfParts;
    }

    public int getImageNumber() {
        return imageNumber;
    }

    public int getImageID() {
        return imageID;
    }
}
